package com.hzf.money.dao.model;

import java.io.Serializable;

public class MoneyCashFlow implements Serializable {
    private Integer id;

    /**
     * 店铺ID
     *
     * @mbg.generated
     */
    private Integer shopId;

    /**
     * 业主ID
     *
     * @mbg.generated
     */
    private Integer ownerId;

    /**
     * 材料商ID
     *
     * @mbg.generated
     */
    private Integer materialId;

    /**
     * 订单ID
     *
     * @mbg.generated
     */
    private Integer orderUserInfoId;

    /**
     * 收款时间
     *
     * @mbg.generated
     */
    private Long createTime;

    /**
     * 类别
     *
     * @mbg.generated
     */
    private Integer cashState; //材料商流水：0，//设计师流水：1//工人工长流水：2
    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public Integer getMaterialId() {
        return materialId;
    }

    public void setMaterialId(Integer materialId) {
        this.materialId = materialId;
    }

    public Integer getOrderUserInfoId() {
        return orderUserInfoId;
    }

    public void setOrderUserInfoId(Integer orderUserInfoId) {
        this.orderUserInfoId = orderUserInfoId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Integer getCashState() {
        return cashState;
    }

    public void setCashState(Integer cashState) {
        this.cashState = cashState;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", shopId=").append(shopId);
        sb.append(", ownerId=").append(ownerId);
        sb.append(", materialId=").append(materialId);
        sb.append(", orderUserInfoId=").append(orderUserInfoId);
        sb.append(", createTime=").append(createTime);
        sb.append(", cashState=").append(cashState);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MoneyCashFlow other = (MoneyCashFlow) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getShopId() == null ? other.getShopId() == null : this.getShopId().equals(other.getShopId()))
            && (this.getOwnerId() == null ? other.getOwnerId() == null : this.getOwnerId().equals(other.getOwnerId()))
            && (this.getMaterialId() == null ? other.getMaterialId() == null : this.getMaterialId().equals(other.getMaterialId()))
            && (this.getOrderUserInfoId() == null ? other.getOrderUserInfoId() == null : this.getOrderUserInfoId().equals(other.getOrderUserInfoId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCashState() == null ? other.getCashState() == null : this.getCashState().equals(other.getCashState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getShopId() == null) ? 0 : getShopId().hashCode());
        result = prime * result + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
        result = prime * result + ((getMaterialId() == null) ? 0 : getMaterialId().hashCode());
        result = prime * result + ((getOrderUserInfoId() == null) ? 0 : getOrderUserInfoId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCashState() == null) ? 0 : getCashState().hashCode());
        return result;
    }
}